/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-react.html#wxshowloadingobject)
 * @param showtitle [string] 提示的内容
 * @param mask [boolean] 是否显示透明蒙层，防止触摸穿透，默认：false
 */
export default function showLoadling(showtitle: string, mask?: boolean) {
	return new Promise<boolean>((resolve) => {
		wx.showLoading({
			mask,
			title: showtitle,
			success() {
				resolve(true);
			}
		});
	});
}
